from django.shortcuts import render


def index(request):
    context = {
        'value': {},    # ''、[]、False、None、{}
        'value_if_none': None,    # None or other
        'books': [
            '三国演义',
            '西游记',
            '水浒传',
            '红楼梦'
        ],
        'authors': [
            '罗贯中',
            '吴承恩',
            '施耐庵',
            '曹雪芹'
        ],
        'num1': 34.2175856,
        'num2': 89.811213
    }
    return render(request, 'index.html', context=context)